package com.longcai.service.nearby;

import com.baomidou.mybatisplus.extension.service.IService;
import com.longcai.bean.ApiResult;
import com.longcai.bean.PageHelper;
import com.longcai.entity.nearby.ClyjNearbyShops;
import com.longcai.page.table.PageTableResponse;

import java.util.List;

/**
 * <p>
 * 附近商铺 服务类
 * </p>
 *
 * @author ZZN
 * @since 2019-04-11
 */
public interface ClyjNearbyShopsService extends IService<ClyjNearbyShops> {
    /**
     * 获取店铺信息
     *
     * @param clyjNearbyShops
     * @return
     */
    PageTableResponse shopsList(ClyjNearbyShops clyjNearbyShops, PageHelper pageHelper);

    /**
     * 根据id获取店铺信息
     *
     * @param id
     * @return
     */
    ApiResult getById(String id);

    /**
     * 店铺上线
     *
     * @param id
     * @return
     */
    ApiResult upShop(String id);

    /**
     * 店铺下线
     *
     * @param id
     * @return
     */
    ApiResult downShop(String id);
    /**
     * 删除店铺
     *
     * @param id
     */
    void deleteShopsList(String id);

    /**
     * 修改店铺
     *
     * @param clyjNearbyShops
     * @return
     */
    ApiResult updateShopsList(ClyjNearbyShops clyjNearbyShops);

    /**
     * 获取所有店铺名称
     *
     * @return
     */
    List<ClyjNearbyShops> getAllshops();

    /**
     * 审核通过更改店铺信息
     *
     * @param clyjNearbyShops
     * @return
     */
    ApiResult saveShops(ClyjNearbyShops clyjNearbyShops);
}
